package com.tuling.code.spring;

public class UserServiceImpl implements UserService {
	private UserDao userDao;
	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public UserServiceImpl(){
		System.out.println("创建 UserService");
	}

	@Override
	public void save() {
		System.out.println("userService-->保存用户...");
		userDao.save();
	}

	@Override
	public void delete() {
		System.out.println("userService-->删除用户...");
		userDao.delete();
	}

}
